package com.xiaoyi.springboot.mapper;

import com.xiaoyi.springboot.entity.DriftingBottle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoyi
 * @since 2021-10-10
 */
public interface DriftingBottleMapper extends BaseMapper<DriftingBottle> {

    List<Long> getLastLimit(@Param("lastLimit") int lastLimit,@Param("userName") String userNameByToken);

    DriftingBottle takeDriftingBottleById(@Param("id") Long id,@Param("userName") String userNameByToken);
}
